package C7_3_ExtractClass;

/**
 *
 * 提炼类
 *
 * 重构前
 */
public class Person {

    private String _name;
    private String _officeAreaCode;
    private String _officeNumber;

    public String getName(){
        return _name;
    }

    public String getTelePhoneNumber(){
        return ("(" + _officeAreaCode + ") " + _officeNumber);
    }

    String getOfficeAreaCode(){
        return _officeAreaCode;
    }

    void setOfficeAreaCode(String arg){
        _officeAreaCode = arg;
    }

    String getOfficeNumber(){
        return _officeNumber;
    }

    void setOfficeNumber(String arg){
        _officeNumber = arg;
    }



}
